package stream;

import org.webrtc.MediaConstraints;

public class Constraints extends MediaConstraints {
    private String deviceId;
    private boolean audio;
    private boolean video;
    private String resolution;
    private String codec;
    private boolean simulcast;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public boolean isAudio() {
        return audio;
    }

    public void setAudio(boolean audio) {
        this.audio = audio;
    }

    public boolean isVideo() {
        return video;
    }

    public void setVideo(boolean video) {
        this.video = video;
    }

    public String getResolution() {
        return resolution;
    }

    public void setResolution(String resolution) {
        this.resolution = resolution;
    }

    public String getCodec() {
        return codec;
    }

    public void setCodec(String codec) {
        this.codec = codec;
    }

    public boolean isSimulcast() {
        return simulcast;
    }

    public void setSimulcast(boolean simulcast) {
        this.simulcast = simulcast;
    }

    public Constraints getDefaultConstraints() {
        resolution = "hd";
        codec = "vp8";
        audio = true;
        video = false;
        simulcast = false;
        return this;
    }
}
